package com.nuonuo.refresh.service.impl;

import com.nuonuo.middleware.drs.spring.context.annotation.DrsBeanRefresh;
import com.nuonuo.refresh.service.RefreshByValueService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author duan
 * @version 1.0
 * @date 2023/1/16 9:25
 */
@DrsBeanRefresh
@Service
public class RefreshByValueServiceImpl implements RefreshByValueService {

    @Value("${app.key}")
    private String appKey;

    @Override
    public String getAppKey() {
        return this + ", " + appKey;
    }
}
